<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>

  <body>
    <script>
      // 1.声明
      let pink = {
        uname: 'pink老师',
        age: 18,
        gender: '女',
        'goods-name': 'vivo手机就是牛',
      }
      // 2. 使用属性  查(两种写法)
      // (1) 对象名.属性名
      console.log(pink.gender)
      // (2) 对象名['属性名']
      console.log(pink['goods-name'])
      console.log(pink['uname'])

      // 3. 改
      pink.gender = '男'

      // 4.增
      pink.hobby = '篮球'

      // 5.删
      delete pink.age
      console.log(pink)

      console.log(typeof pink)
    </script>
  </body>
</html>
